<?php
$nav = isset($nav) ? $nav : array();
?>
<div class='sub_nav span2'>
  <div class='header'>
    <p>导航</p>
  </div>
  <div class='body'>
    <ul class='unstyled'>
    <?php foreach ($nav as $v):?>
      <li><a href='<?php echo $v['url'];?>'><?php echo $v['cname']?></a></li>
    <?php endforeach;?>
    </ul>
  </div>
</div>
